<!DOCTYPE html>
<html>
<head>
    <title>jQuery WeUI</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
    ">

    <link rel="stylesheet" href="/lib/weui.min.css">
    <link rel="stylesheet" href="/css/jquery-weui.css">
    <link rel="stylesheet" href="/css/dist.css">

</head>

<body ontouchstart>


    <header class='demos-header' style="padding: 15px 0;">
        <% if(!docs.upMoney && docs.upMoney != 0){ %>
        <h1 class="demos-title">订单详情</h1>
        <% }else{ %>
        <h1 class="demos-title">感谢您的监督</h1>
        <% } %>
    </header>

    <div class="weui-form-preview">
        <div class="weui-form-preview__hd">
            <div class="weui-form-preview__item">
                <% if(docs.upMoney || docs.upMoney == 0){ %>
                <label class="weui-form-preview__label" style="color:#068e00;">付款金额</label>
                <span class="weui-form-preview__value" style="color:#068e00;">¥<%= docs.money %></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">提成金额</label>
                <em class="weui-form-preview__value">¥<%= docs.upMoney %></em>
            </div>
        </div>
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">累积提成</label>
                <span class="weui-form-preview__value">¥<%= docs.upMoney + docs.heapMoney %></span>
            </div>
                <% }else{ %>
                <label class="weui-form-preview__label" style="color:#068e00;">付款金额</label>
                <em class="weui-form-preview__value" style="color:#068e00;">¥<%= docs.money %></em>
            </div>
        </div>
        <div class="weui-form-preview__bd">
                <% } %>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">订单简介</label>
                <span class="weui-form-preview__value"><%= docs.title %></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">所在商家</label>
                <span class="weui-form-preview__value"><%= docs.name %></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">商家地址</label>
                <span class="weui-form-preview__value"><%- docs.address %></span>
            </div>
        </div>
        <% if(!docs.upMoney && docs.upMoney != 0){ %>
        <div class="weui-form-preview__ft" style="display:block;padding-bottom: 30px;">
            <p style="width: 100%; display: block;height: 50px;line-height:50px;text-align: center;font-size:14px;">请所在酒店工作人员扫码确认订单</p>
            <p style="padding-bottom: 70%;width:70%;margin:0 auto;display:block;position: relative">
                <img src="<%= docs.qrcode %>" style="position: absolute;width: 100%;height: 100%;left: 0;top: 0;" />
            </p>
        </div>
        <% } %>
    </div>
    <script src="/lib/jquery-2.1.4.js"></script>
    <script src="/lib/fastclick.js"></script>
    <script>
    $(function() {
        FastClick.attach(document.body);
    });
    </script>
    <script src="/js/jquery-weui.js"></script>

</body>
</html>
